package com.sntra.beibi.dao;

import com.sntra.beibi.domain.Book;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface BookMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Book record);

    int insertSelective(Book record);

    Book selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Book record);

    int updateByPrimaryKeyWithBLOBs(Book record);

    int updateByPrimaryKey(Book record);

    int updateBookMsg(Book record);
    
    int updateGenStatus(Book record);

    int updateBookImg(Book record);

    int deleteBook(Integer id);

    List<Book> allBook();

    List<Book> likeTitle(String title);
    
    List<Book> queryUngenerateBooks();

    List<Book> bookOfTitle(String title);
}
